﻿using System;
using AbstractFactory.Factory;

namespace AbstractFactory.TableFactory
{
    public class TableFactory : Factory.Factory
    {
        public override Link CreateLink(String caption, String url)
        {
            return new TableLink(caption, url);
        }
        public override Tray CreateTray(String caption)
        {
            return new TableTray(caption);
        }
        public override Page CreatePage(String title, String author)
        {
            return new TablePage(title, author);
        }
    }
}
